package lad02.test11;

public class Test11 {public static void main(String[] args) {
    System.out.println("测试Rectangle类.");
    Rectangle rectangle = new Rectangle();
    rectangle.length = 15;
    rectangle.wide = 10;
    rectangle.printMyMay();

    System.out.println("测试正方形类:");
    Square square = new Square();
    square.side = 2;
    square.printMyMay();
}
}
